home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / IDLIncludes / GregorianCalendarDate.idl < prev    next >
Text File  |  1996-05-01  |  4KB  |  132 lines

  1. /*
  2.      File:        GregorianCalendarDate.idl
  3.  
  4.      Contains:    IDL interface for the GregoiranCalendarDate class
  5.  
  6.      Version:    Technology:    System 8.0
  7.                  Release:    Universal Interfaces 3.0d3 on Copland DR1
  8.  
  9.      Copyright:    © 1995-1996 by Apple Computer, Inc.  All rights reserved.
  10.  
  11.      Bugs?:        If you find a problem with this file, send the file and version
  12.                  information (from above) and the problem description to:
  13.  
  14.                      Internet:    apple.bugs@applelink.apple.com
  15.                      AppleLink:    APPLE.BUGS
  16. */
  17.  
  18.  
  19. #ifndef __GREGORIANCALENDARDATE__
  20. #define __GREGORIANCALENDARDATE__
  21.  
  22. #include <somobj.idl>
  23. #include <somcls.idl>
  24.  
  25. #include <CalendarDate.idl>
  26. #include <Types.idl>
  27.  
  28. interface TGregorianCalendarDate : TCalendarDate
  29. {
  30.     //_________________________________________________________________________________________
  31.     //
  32.     // Validation Flags
  33.     //
  34.     //_________________________________________________________________________________________
  35.     
  36.     const    OptionBits        kGregorianValidateDayMask            = 0x00000001;
  37.     const    OptionBits        kGregorianValidateMonthMask            = 0x00000002;
  38.     const    OptionBits        kGregorianValidateYearMask            = 0x00000004;
  39.     const    OptionBits        kGregorianValidateSecondsMask        = 0x00000008;
  40.     const    OptionBits        kGregorianValidateMinutesMask        = 0x00000010;
  41.     const    OptionBits        kGregorianValidateHoursMask            = 0x00000020;
  42.     const    OptionBits        kGregorianValidateDayOfWeekMask        = 0x00000040;
  43.     const    OptionBits        kGregorianValidateWeekOfYearMask    = 0x00000080;
  44.     const    OptionBits        kGregorianValidateDayOfYearMask        = 0x00000100;
  45.     const    OptionBits        kGregorianValidateAllMask            = 0x000001FF;
  46.  
  47.         
  48.     //_________________________________________________________________________________________
  49.     //
  50.     // Methods
  51.     //
  52.     //_________________________________________________________________________________________
  53.  
  54.     UInt16    GregorianDateGetMonth();
  55.     void    GregorianDateSetMonth(in UInt16    month);
  56.     
  57.     UInt16    GregorianDateGetDay();
  58.     void    GregorianDateSetDay(in UInt16    day);
  59.     
  60.     UInt16    GregorianDateGetYear();
  61.     void    GregorianDateSetYear(in UInt16    year);
  62.     
  63.     UInt16    GregorianDateGetHours();
  64.     void    GregorianDateSetHours(in UInt16    hours);
  65.     
  66.     UInt16    GregorianDateGetMinutes();
  67.     void    GregorianDateSetMinutes(in UInt16     minutes);
  68.     
  69.     UInt16    GregorianDateGetSeconds();
  70.     void    GregorianDateSetSeconds(in UInt16    seconds);
  71.     
  72.     UInt16    GregorianDateGetDayOfWeek();
  73.     void    GregorianDateSetDayOfWeek(in UInt16    dayOfWeek);
  74.  
  75.     UInt16    GregorianDateGetDayOfYear();
  76.     void    GregorianDateSetDayOfYear(in UInt16    dayOfYear);
  77.     
  78.     UInt16    GregorianDateGetWeekOfYear();
  79.     void    GregorianDateSetWeekOfYear(in UInt16    weekOfYear);
  80.     
  81. #ifdef __SOMIDL__
  82.     implementation
  83.     {    
  84.         passthru C_h_before = "#include <TimeObjects.h>";
  85.         releaseorder:    _get_fMonth,
  86.                         _set_fMonth,
  87.                         _get_fDay,
  88.                         _set_fDay,
  89.                         _get_fYear,
  90.                         _set_fYear,
  91.                         _get_fHours,
  92.                         _set_fHours,
  93.                         _get_fMinutes,
  94.                         _set_fMinutes,
  95.                         _get_fSeconds,
  96.                         _set_fSeconds,
  97.                         _get_fDayOfWeek,
  98.                         _set_fDayOfWeek,
  99.                         _get_fDayOfYear,
  100.                         _set_fDayOfYear,
  101.                         _get_fWeekOfYear,
  102.                         _set_fWeekOfYear,
  103.                         GregorianDateGetMonth,
  104.                         GregorianDateSetMonth,
  105.                         GregorianDateGetDay,
  106.                         GregorianDateSetDay,
  107.                         GregorianDateGetYear,
  108.                         GregorianDateSetYear,
  109.                         GregorianDateGetHours,
  110.                         GregorianDateSetHours,
  111.                         GregorianDateGetMinutes,
  112.                         GregorianDateSetMinutes,
  113.                         GregorianDateGetSeconds,
  114.                         GregorianDateSetSeconds,
  115.                         GregorianDateGetDayOfWeek,
  116.                         GregorianDateSetDayOfWeek,
  117.                         GregorianDateGetDayOfYear,
  118.                         GregorianDateSetDayOfYear,
  119.                         GregorianDateGetWeekOfYear,
  120.                         GregorianDateSetWeekOfYear;
  121.         somInit                    : override;
  122.         ValidateCalendarDate    : override;
  123.         majorversion = 1;
  124.         minorversion = 1;
  125.         
  126.     };
  127. #endif
  128.  
  129. };
  130.  
  131. #endif
  132.